import axios from 'axios'

const http = axios.create({
  baseURL: '/api',
  timeout: 10000
})

http.interceptors.request.use(request => {
  return request
})
http.interceptors.response.use(response => {
  return response.data
})
export default http